Platform Explorer / Nuxeo Platform LTS 2019 10.10

Contribution org.nuxeo.ecm.platform.suggestbox.actions--actions

This contribution is part of XML component org.nuxeo.ecm.platform.suggestbox.actions inside nuxeo-platform-suggestbox-jsf-10.10-HF33.jar /OSGI-INF/suggestbox-actions-contrib.xml

Documentation

Disable the default simple search from Nuxeo and adds a suggestion search box instead.

Extension Point

Extension point actions of component ActionService.

Registration Order

38
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <action enabled="false" id="simple_search_box"/>
  • <action id="suggest_search_box" order="1" type="template">
          <category>SEARCH_ACTIONS</category>
          <filter-id>isSearchEnabled</filter-id>
          <properties>
            <property name="template">/search/suggestbox.xhtml</property>
            <property name="disableMultipartForm">true</property>
            <property name="minChars">1</property>
            <property name="multiple">false</property>
            <property name="operationId">Search.SuggestersLauncher</property>
            <property name="placeholder">label.suggestion.placeholder</property>
            <property name="readonly">false</property>
            <property name="selectionFormatter">nuxeo.suggestbox.selectedFormatter</property>
            <property name="suggestionFormatter">nuxeo.suggestbox.suggestedFormatter</property>
            <property name="onAddEntryHandler">nuxeo.suggestbox.entryHandler</property>
            <property name="autocomplete">true</property>
            <property name="dropdownCssClass">nx-header-s2-dd</property>
            <property name="containerCssClass">nx-header-s2-ct</property>
            <property name="width">300px</property>
            <property name="translatePlaceholder">true</property>
            <property name="onEnterKeyHandler">nxSuggestHandleEnterKey</property>
          </properties>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <documentation>
      Disable the default simple search from Nuxeo and adds a
      suggestion search box instead.
    </documentation>

    <!-- disable suggest box for now, see NXP-15081 -->
    <action enabled="false" id="simple_search_box"/>

    <action id="suggest_search_box" order="1" type="template">
      <category>SEARCH_ACTIONS</category>
      <filter-id>isSearchEnabled</filter-id>
      <properties>
        <property name="template">/search/suggestbox.xhtml</property>
        <property name="disableMultipartForm">true</property>
        <property name="minChars">1</property>
        <property name="multiple">false</property>
        <property name="operationId">Search.SuggestersLauncher</property>
        <property name="placeholder">label.suggestion.placeholder</property>
        <property name="readonly">false</property>
        <property name="selectionFormatter">nuxeo.suggestbox.selectedFormatter</property>
        <property name="suggestionFormatter">nuxeo.suggestbox.suggestedFormatter</property>
        <property name="onAddEntryHandler">nuxeo.suggestbox.entryHandler</property>
        <property name="autocomplete">true</property>
        <property name="dropdownCssClass">nx-header-s2-dd</property>
        <property name="containerCssClass">nx-header-s2-ct</property>
        <property name="width">300px</property>
        <property name="translatePlaceholder">true</property>
        <property name="onEnterKeyHandler">nxSuggestHandleEnterKey</property>
      </properties>
    </action>

  </extension>